package com.ocp.macro.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * (Authorization)实体类
 *
 * @author 
 * @since 2021-10-06 15:01:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Authorization implements Serializable, GrantedAuthority {
    private static final long serialVersionUID = 320809558326949511L;
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 安全框架权限
     */
    private String authority;
    /**
     * 描述
     */
    private String authDesc;

    @Override
    public String getAuthority() {
        return authority;
    }

}

